package net.adetech.crj.common;

import java.util.HashMap;
import java.util.Map;

public class ParamsUtil {

    public static Map<String,Object> getParamsMap(Object... params)
    {
        Map<String,Object> result = new HashMap<String, Object>();
        for (int i = 0;i<params.length;i+=2)
        {
            String key = (String)params[i];
            Object value = (Object) params[i+1];
            result.put(key,value);
        }
        return result;
    }
}
